﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MediaServer
{
    /// <summary>
    /// Utility interface for logging purposes.
    /// </summary>
    public interface ILogger
    {
        /// <summary>
        /// Generic logging method.
        /// </summary>
        /// <param name="message">Log message</param>
        void log(string message);
    }

    /// <summary>
    /// Console logger.
    /// </summary>
    public class ConsoleLogger : ILogger
    {
        /// <summary>
        /// Writes a new line containing log message in console window.
        /// </summary>
        /// <param name="message">Log message</param>
        public void log(string message)
        {
            Console.WriteLine(message);
        }
    }
}
